package com.wfg.nettydemo.netty.codec;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author wufagang
 * @description
 * @date 2022年06月05日 17:18
 */
public class NettyServerHandler extends SimpleChannelInboundHandler<StudentPOJO.Student> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, StudentPOJO.Student student) throws Exception {

        System.out.println("客户端发送的数据 id=" + student.getId() + " 名字=" + student.getName());
    }
}
